<div class="col-sm-12 mt20">
  <div class="panel">
    <div class="panel-body">
      <div class="row">
        <div class="col-md-2">
          <input type="text" class="form-control" ng-model="searchform.name" placeholder="姓名">
        </div>
        <div class="col-md-2">
          <input type="text" class="form-control" ng-model="searchform.mobile" placeholder="手机">
        </div>
        <div class="col-md-2">
          <input type="text" class="form-control" ng-model="searchform.cardno" placeholder="身份证号">	
        </div>
        <div class="col-md-2">
          <div class="input-group">
            <span class="input-group-addon">
              <input type="checkbox" ng-model="searchform.usedate" ng-true-value="1" ng-false-value="0">
            </span>
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="searchform.date" 
             is-open="searchform.opened" ng-click="dateOpen($event, searchform)" placeholder="出游日期" 
             ng-required="true" close-text="关闭" current-text="今天" clear-text="清除" readonly/>
          </div>
        </div>
        <div class="col-sm-2" ng-show="formData.showItem == '1'">	
          <ui-select ng-model="searchform.ticket_state" theme="bootstrap">
            <ui-select-match placeholder="票状态">{{$select.selected.label}}</ui-select-match>
            <ui-select-choices repeat="item.value as item in ticket_state_list">
              <span ng-bind-html="item.label"></span>
            </ui-select-choices>
          </ui-select>
        </div>

        <div class="col-md-2">
          <button class="btn btn-block btn-info" ng-click="search(1)">立即搜索</button> 
        </div>
        <div class="col-md-2" ng-show="formData.exportFlag == '4'">
          <button class="btn btn-block btn-info" ng-click="downDate()">导出人员名单</button>
        </div>
      </div>			
    </div>
  </div>

	<div class="panel panel-default">
		<div class="panel-body">
			<table class="table table-condensed table-hover table-bordered">
				<thead>
					<tr>
						<th style="width: 10%; text-align: center">出游日期</th>
						<th style="width: 15%; text-align: center">机构信息</th>
						<th style="width: 20%; text-align: center">游客信息</th>
						<th style="width: 18%; text-align: center">订单信息</th>
						<th style="width: 14%; text-align: center" ng-show="formData.showItem == '1'">票信息</th>
						<th style="width: 14%; text-align: center" ng-show="formData.showItem == '2'">车辆信息</th>
						<th style="width: 14%; text-align: center" ng-show="formData.showItem == '3'">车信息</th>
						<th style="width: 7%; text-align: center">来源</th>
						<th style="width: 7%; text-align: center" ng-show="formData.showItem == '3'">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="obj in order_list">
            <td class="text-center"><br/>{{obj.tour_date}}</td>
						<td style="vertical-align: middle">
              {{'名称：' + obj.company_name}}<br/>
              {{'编号：' + obj.company_code}}
            </td>
						<td>{{'姓 名：' + obj.name}}<br/>{{'手 机：' + obj.mobile}}<br/>{{'身份证：' + obj.cardno}}</td>
						<td style="vertical-align: middle">
              状 态：{{obj.state=='0'?'预约成功':obj.state=='1'?'已使用':'已取消'}}<br/>
              时 间：{{obj.state != '2' ? obj.order_create : obj.order_cancel}}<br/>
              <span ng-show="obj.order_code">订单号：{{obj.order_code}}</span><br/>
              <span ng-show="obj.order_code">活动：{{obj.title}}</span>
            </td>
						<td class="text-center" ng-show="formData.showItem == '1'" style="vertical-align: middle">
              {{obj.ticket_state=='2'?'已出票':'未出票'}}<br/>
              <span ng-show="obj.ticket_code">[票码]：{{obj.ticket_code}}</span>
						</td>
						<td ng-show="formData.showItem == '2'" style="vertical-align: middle">
              <span ng-show="obj.bus_state == '0'">未排车</span>
              <span ng-show="obj.bus_state == '1'">[车序号]：{{obj.tip_no}}<br/>
                <span ng-show="obj.num_plate">[车牌号]：{{obj.num_plate}}<br/></span>
                <span ng-show="obj.address">[地 点]：{{obj.address}}<br/></span>
              </span>
						</td>
						<td ng-show="formData.showItem == '3'">
              {{obj.by_bus=='0'?'自驾':'跟车'}}<br/>
              [车状态]：{{obj.is_close=='0'?'未封车':'已封车'}}<br/>
              [保 险]：{{obj.insurance_state=='0'?'未保险':'已保险'}}<br/>
						</td>
						<td class="text-center"><br/>{{obj.order_source=='0'?'分销':'商客'}}</td>
						<td class="text-center" ng-show="formData.showItem == '3'"><br/>
              <button type="button" ng-show="obj.state!='2'" class="btn btn-warning btn-xs" ng-click="insurance()">险种</button>
						</td>
					</tr>
				</tbody>
      </table>
      <div class="text-right" style="background-color: white">
        <pagination total-items="totalItems" ng-model="currentPage" max-size="5" class="pagination-sm" 
          boundary-links="true" ng-change="search(currentPage)" items-per-page="itemsPerPage" previous-text="上一页"
          next-text="下一页" first-text="首页" last-text="末页" rotate="false">
        </pagination>
      </div>
      
		</div>
	</div>
</div>
